package com.mobulasoft.calquest;

import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public abstract class CalQuestActivity extends Activity {
    
	private ActivityDecorator decorator;
	
	public CalQuestActivity() {
		decorator = new ActivityDecorator(this);
	}
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        decorator.prepareWindowAndContentView(savedInstanceState, getLayoutId());
    }
    
    @Override
	public boolean onCreateOptionsMenu(Menu menu) {
		return decorator.onCreateOptionsMenu(menu);
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		return decorator.onOptionsItemSelected(item);
	}
    
    public abstract int getLayoutId();
}